package com.song.thread;

public class MyThread  {
    public static void main(String[] args) throws InterruptedException {

        Thread thread = new Thread(()->System.out.println("thread start"));
        thread.start();

        Thread thread1 = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("thread2 start");
            }
        });

        thread.sleep(2000);
        thread1.start();
    }
}
